<template>
  <div class="hello">
    <Header />
    <div class="nav">
      <ul>
        <router-link tag="li" to="/whole/region">深圳<i class="iconfont">&#xeb6d;</i></router-link>
        <router-link tag="li" to="/whole/resin">正在热映</router-link>
        <router-link tag="li" to="/whole/release">即将上映</router-link>
        <router-link tag="li" to="/whole/search"><i class="iconfont">&#xe644;</i></router-link>
      </ul>
    </div>
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
    <Tabar />
  </div>
</template>

<script>
import Header from './Head'
import Tabar from './Tabar'
export default {
  name: 'HelloWorld',
  data () {
    return {
     
    }
  },
  components:{
    Header,
    Tabar
  },
  methods:{
   /*  resin(){
      var that = this;
      that.$router.push({path:'/whole/resin'});
    },
    releasr(){
      var that = this;
      that.$router.push({path:'/whole/release'})
    } */
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

.nav{
  padding:0 var(--space);
  border-bottom:1px solid rgb(245,245,245);
  position: fixed;
  top:0.43rem;
  left:0;
  right:0;
  z-index: 100000;
  background:white;
}

.nav ul{
  display: flex;
}

.nav ul li{
  width:calc(100% / 4);
  padding:0.1rem 0;
  font-size:0.15rem;
  color:#666;
}

.nav ul li:first-child{
  margin-top:0.05rem;
}

.nav ul li:first-child i{ 
  vertical-align: middle;
}

.nav ul li:nth-of-type(2){
  text-align: center;
  margin-top:0.05rem;
}

.nav ul li:nth-of-type(3){
  text-align: center;
  margin-top:0.05rem;
}

.nav ul li:last-child{
  text-align: center;
  padding-right:0.08rem;
  box-sizing: border-box;
  color: red;
}

.nav ul li:last-child i{
  font-size:0.24rem;
}

.nav .active{
  color:orangered;
  border-bottom:2px solid orangered;
}

</style>
